<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://jakarta.apache.org/taglibs/log-1.0" prefix="log" %>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<title>Insert title here</title>

</head>
<body>
<a href="test.jsp?para=中文测试">Test parameter</a>
<log:debug message="this is a debug message"/>
<log:debug category="foo.bar" message="this is a debug2 message"/>

<log:debug category="foo.bar">
  this is a debug3 message
</log:debug>



<log:error message="this is a error message"/>

<log:error category="foo.bar" message="this is a error2 message"/>

<log:error category="foo.bar">
  this is a error3 message
</log:error>


<br>
<%
    String str = request.getParameter("para");
    if (null != str) {
        out.println("Orign:" + str);
        out.println("<br>Convert: " + new String(str.getBytes("ISO-8859-1"), "UTF-8"));
    }
%>


</body>
</html>